package com.feihao.zhou.dao;

import com.feihao.zhou.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    abstract boolean save(User user);

    abstract boolean delete(Integer uuid);

    abstract boolean update(User user);

    User getById(Integer uuid);

    List<User> getAll();

    //根据userName和password查询
    User getByUserNameAndPassword(@Param("userName") String userName, @Param("password") String password);
}
